-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a PHP Notice in REST API responses #6576
Conversation
PHPUnit doesn't like it :) |
The |
So you need another |
It fixes the issue. |
PHP 5.2 is the worst. |
Off-topic, but why does WordPress still support such old PHP versions? PHP 5.5 and earlier is not even officially supported anymore. Couldn't the dev team announce that PHP 5.5 and earlier versions will stop being supported in WordPress 5.2 or something, in order to give people time to update? I've heard some people complain that WordPress is actually holding back adoption of newer PHP versions by continuing to support really old PHP versions. |
Hi @SuperGeniusZeb, Let's keep the conversation on-topic. For discussion of minimum PHP version, please this existing thread https://core.trac.wordpress.org/ticket/33381 |
Description
As described in #6575, there's a PHP notice when adding the
block_format
to post responses.We can fix this by removing the
is_array()
check, isisset()
can check multi-dimensional arrays correctly.